Eclipse Platform
Pre-release 3.0

org.eclipse.ui.views.properties
Class ResourcePropertySource

java.lang.Object
  extended byorg.eclipse.ui.views.properties.ResourcePropertySource
All Implemented Interfaces:
org.eclipse.ui.views.properties.IPropertySource
Direct Known Subclasses:
FilePropertySource

public class ResourcePropertySource
extends Object
implements org.eclipse.ui.views.properties.IPropertySource

A Resource property source.


Field Summary
protected  IResource element
           
protected  String errorMessage
           
protected static String FILE_NOT_EXIST_TEXT
           
protected static String FILE_NOT_FOUND
           
protected static String NOT_LOCAL_TEXT
           
protected static org.eclipse.ui.views.properties.IPropertyDescriptor[] propertyDescriptors
           
protected static org.eclipse.ui.views.properties.IPropertyDescriptor[] propertyDescriptorsLinkVariable
           
protected static String UNDEFINED_PATH_VARIABLE
           
 
Constructor Summary
ResourcePropertySource(IResource res)
          Creates a PropertySource and stores its IResource
 
Method Summary
 Object getEditableValue()
           
protected  File getFile(IResource resource)
          Get the java.io.File equivalent of the passed IFile.
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object name)
           
 boolean isPropertySet(Object property)
           
 void resetPropertyValue(Object property)
          The ResourcePropertySource implementation of this IPropertySource method does nothing since all properties are read-only.
 void setPropertyValue(Object name, Object value)
          The ResourcePropertySource implementation of this IPropertySource method does nothing since all properties are read-only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_LOCAL_TEXT

protected static String NOT_LOCAL_TEXT

FILE_NOT_FOUND

protected static String FILE_NOT_FOUND

UNDEFINED_PATH_VARIABLE

protected static String UNDEFINED_PATH_VARIABLE

FILE_NOT_EXIST_TEXT

protected static String FILE_NOT_EXIST_TEXT

element

protected IResource element

errorMessage

protected String errorMessage

propertyDescriptors

protected static org.eclipse.ui.views.properties.IPropertyDescriptor[] propertyDescriptors

propertyDescriptorsLinkVariable

protected static org.eclipse.ui.views.properties.IPropertyDescriptor[] propertyDescriptorsLinkVariable
Constructor Detail

ResourcePropertySource

public ResourcePropertySource(IResource res)
Creates a PropertySource and stores its IResource

Parameters:
res - the resource for which this is a property source
Method Detail

getEditableValue

public Object getEditableValue()
Specified by:
getEditableValue in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyValue

public Object getPropertyValue(Object name)
Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

isPropertySet

public boolean isPropertySet(Object property)
Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource

resetPropertyValue

public void resetPropertyValue(Object property)
The ResourcePropertySource implementation of this IPropertySource method does nothing since all properties are read-only.

Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

setPropertyValue

public void setPropertyValue(Object name,
                             Object value)
The ResourcePropertySource implementation of this IPropertySource method does nothing since all properties are read-only.

Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

getFile

protected File getFile(IResource resource)
Get the java.io.File equivalent of the passed IFile. If the location does not exist then return null

Returns:
java.io.File or null.

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.